Backing Up and Restoring IIS

You can back up your IIS configuration so that it is easy to return to a previous state. The steps to restore a configuration differ depending upon whether you removed and reinstalled IIS.

To back up your IIS configuration
  1. In the IIS snap-in on the local computer, select the Computer icon under Internet Information Services.
  2. Click the Action button and select Backup/Restore Configuration.
  3. Click the Create backup button, choose a name for your backup file, and click OK. By default, the backup file will be stored in the \Winnt\system32\inetsrv\MetaBack directory.
  4. Click Close.
  5. Important

Note   You can back up IIS by using the browser-based Internet Services Manager (HTML), but you must use the IIS snap-in to restore your configuration.

To restore your IIS configuration
  1. In the IIS snap-in on the local computer, select the Computer icon under Internet Information Services.
  2. Click the Action button and select Backup/Restore Configuration.
  3. Select a backup file and click the Restore button. When asked whether to restore your configuration settings, click Yes.
To restore your IIS configuration after removing and re-installing IIS
  1. In the IIS snap-in on the local computer, select the Computer icon under Internet Information Services.
  2. Click the Action button and select Backup/Restore Configuration.
  3. In the Configuration Backup Name dialog box, select the backup file you created, and click the Restore button. Although an error message states that the restoration has failed, a portion of your backed-up configuration will be restored.
  4. At a command prompt, type cscript.exe X:\InetPub\AmdinScripts\Adsutil.vbs enum w3svc, where X is the drive letter where IIS is installed. From the settings listed, find the WamUserName and the associated WAMUserPass value.
  5. Note   To use the Adsutil.vbs utility you must have Windows Script Host installed.

  6. Click Start, point to Settings, click Control Panel, double-click Administrative Tools, then double-click Computer Management.
  7. Choose Local User Managers, and click Users. Double-click the IWAM_computername user account. Type the WAMUserPass value retrieved from the previous step and click OK.
  8. In the Configuration Backup Name dialog box, select the backup file you created, and then click Restore. Your configuration will now be fully restored.
  9. Note   If you changed the identity of your out-of-process applications, those applications will revert back to the previous IWAM user name.

Related Topics


© 1997-1999 Microsoft Corporation. All rights reserved.